@model string
@{
    var descriptor = ViewData.ModelMetadata.GetViewDescriptor();
}
@Html.Hidden("", Model, descriptor?.ToHtmlProperties())
<input type="file" name="file" class="form-control"/>